package com.yanqu.road.entity.cricket.court;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import java.util.Objects;

/**
 * 竞技场宗师榜用户信息
 */
@FieldTypeAnnotation(tableName = "t_c_cricket_court_top_user_data")
public class CricketCourtTopUserData extends DataObject {

    @FieldTypeAnnotation(desc = "服务器id", select = true, update = true)
    private long serverId;

    @FieldTypeAnnotation(desc = "用户id", select = true, update = true)
    private long userId;

    @FieldTypeAnnotation(desc = "匹配分组id")
    private int matchGroupId;

    @FieldTypeAnnotation(desc = "轮次")
    private int round;

    @FieldTypeAnnotation(desc = "积分")
    private long score;

    @FieldTypeAnnotation(desc = "排行榜额外参数,备用")
    private String param = "";

    @FieldTypeAnnotation(desc = "排名")
    private int rank;

    public CricketCourtTopUserData() {

    }

    public long getServerId() {
        return serverId;
    }

    public void setServerId(long serverId) {
        if (this.serverId != serverId) {
            this.serverId = serverId;
            this.setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            this.setUpdateOption();
        }
    }

    public int getMatchGroupId() {
        return matchGroupId;
    }

    public void setMatchGroupId(int matchGroupId) {
        if (this.matchGroupId != matchGroupId) {
            this.matchGroupId = matchGroupId;
            this.setUpdateOption();
        }
    }

    public long getScore() {
        return score;
    }

    public void setScore(long score) {
        if (this.score != score) {
            this.score = score;
            this.setUpdateOption();
        }
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        if (!Objects.equals(this.param, param)) {
            this.param = param;
            this.setUpdateOption();
        }
    }

    public int getRound() {
        return round;
    }

    public void setRound(int round) {
        if (this.round != round) {
            this.round = round;
            this.setUpdateOption();
        }
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        if (this.rank != rank) {
            this.rank = rank;
            this.setUpdateOption();
        }
    }
}
